<template>
  <div style="display: none;"></div>
</template>
<script>
  export default {
    name: 'TTableColumn',
    props: {
      label: String,
      prop: String,
      width: [String, Number],
      type: [String],
    },
    mounted() {
      const column = {
        label: this.label,
        prop: this.prop,
        render: this.$scopedSlots ? this.$scopedSlots.default : null,
        width: this.width,
      };
      this.$parent.store.addColumn(column);
    },
  };
</script>